package com.ruicar.afs.cloud.bizcommon.print.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.ruicar.afs.cloud.common.core.entity.BaseEntity;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author: phong
 * @date 2020-06-09
 * @description 打印模板字段映射表
 */
@Data
@Accessors(chain = true)
@TableName(value = "com_print_form_field_mapping", autoResultMap = true)
public class ComPrintFormFieldMapping extends BaseEntity<ComPrintFormClass> implements Serializable, Cloneable {

    /**
     * 模板编号
     */
    @NotBlank(message = "模板编号不能为空")
    @NotNull(message = "模板编号不能为空")
    private String printFormId;
    /**
     * 原字段名称
     */
    @NotBlank(message = "原字段名不能为空")
    @NotNull(message = "原字段名不能为空")
    private String originalFieldId;
    /**
     * 原始字段描述
     */
    private String originalFieldName;
    /**
     * 映射字段名
     */
    @NotBlank(message = "映射字段名不能为空")
    @NotNull(message = "原映射字段名称不能为空")
    private String mappingFieldId;
    /**
     * 映射字段描述
     */
    private String mappingFieldName;
    /**
     * 模板ID
     */
    @NotBlank(message = "模板ID不能为空")
    @NotNull(message = "模板ID不能为空")
    private String templateId;


}
